<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CustomerPrice extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('customer_price', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->unsignedBigInteger('customer_id')->comment('客户id');
            $table->unsignedBigInteger('user_id')->default(0)->comment('报价人');
            $table->string('nickname')->nullable()->comment('报价人姓名');
            $table->dateTime('time')->nullable()->comment('报价时间');
            $table->string('price')->nullable()->comment('报价价格');
            $table->text('remark')->nullable()->comment('报价备注');
            $table->text('multiple_file')->nullable()->comment('报价附件，多个用,隔开');
            $table->unsignedBigInteger('created_user_id')->default(0)->comment('添加人用户ID');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('customer_price');
    }
}
